export class JsonResult{
    code:number;
    msg:string;
    data:any;

    static getError(msg:string = '验证未通过，操作被中断！'):JsonResult{
        let ret = new JsonResult();
        ret.code = -1;
        ret.msg = msg;
        ret.data = null;

        return ret;
    }

    constructor(data?:any){
        this.code = 1;
        this.data = data;
    }
}
